package com.openx.amqp;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.amqp.multi")
public class XRabbitMutiProperties implements Serializable{
    private static final long serialVersionUID = 1617431075746355939L;
    @Autowired
    private XRabbitProperties single;
    private boolean enable = false;
    private XRabbitProperties[] rabbit;
    public XRabbitMutiProperties(){}
    
    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public XRabbitProperties getSingle() {
        return single;
    }
    public void setSingle(XRabbitProperties single) {
        this.single = single;
    }
    public XRabbitProperties[] getRabbit() {
        return rabbit;
    }
    public void setRabbit(XRabbitProperties[] rabbit) {
        this.rabbit = rabbit;
    }
    
}
